/*
 * @Author: your name
 * @Date: 2021-12-23 13:42:50
 * @LastEditTime: 2021-12-23 19:44:54
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \day12 ts 路由 月考\my-app\src\router\routerList.tsx
 */
import {lazy} from "react"

let RouterList=[{
    path:"/Home",
    component:lazy(()=>import("../views/index/index")),
    children:[{
        path:"/Home/House",
        title:"二手房",
        component:lazy(()=>import("../views/index/House/House"))
    },{
        path:"/Home/newHouse",
        title:"新房",
        component:lazy(()=>import("../views/index/newHouse/newHouse"))
    },{
        path:"/Home",
        to:"/Home/House"
    }]
},{
    path:"/",
    to:"/Login"
},{
    path:"/Login",
    component:lazy(()=>import("../views/login/Login")),
}]

export default RouterList